#include<string.h>
#include"shm.hpp"
#include"namedPipe.hpp"
#Include<aio.h>

int main(){
    shm severWindow(gUser);
    char *shmwrite = (char*)severWindow.Addr();
    //char writeIn[BaseSize] = {0};
    //共享内存不用（语言）缓冲区
    std::cout << "开始写" << std::endl;
    char ch = 'A';
    NamedPipe h(User);
    h.OpenForSeverRead();
    while (ch < 'Z')
    {
        sleep(2);
        std::cout << "add " << ch << " into Shm, " << "wakeup reader" << std::endl;
        shmwrite[ch - 'A'] = ch;
        ch++;
    }
}